package com.test.resumeanalysis.data

import androidx.lifecycle.LiveData
import androidx.room.*
import com.test.resumeanalysis.data.model.JobPost

@Dao
interface JobPostDao{

    @Query("SELECT * FROM JOBPOST_TABLE ")
    fun getAllData(): LiveData<List<JobPost>>

    @Insert(onConflict = OnConflictStrategy.IGNORE)
    suspend fun insertData(jobPost: JobPost)

    @Update
    suspend fun upData(jobPost: JobPost)

    @Delete
    suspend fun delData(jobPost: JobPost)

}